<?php
if(!defined("ADMREAD")) exit();
global $sess,$lang,$ADMIN_PERM_ARRAY,$ADMIN_ID,$CHECK_ADMIN;
$block = array();
if(in_array('seo',$ADMIN_PERM_ARRAY) || in_array($ADMIN_ID,$CHECK_ADMIN['admid'])){
    $block['id'] = 'seo';
    $block['title'] = $lang['menu_seo'];
    if (defined('NOTCURL')) {
        $block['link'] = array(
        'seo.php?dn=index&ops='.$sess['hash'] => $lang['all_set']
        );
    } else {
        $block['link'] = array(
        'seo.php?dn=index&ops='.$sess['hash'] => $lang['all_set'],
        'seo.php?dn=rank&ops='.$sess['hash'] => $lang['rank_checker'],
        'seo.php?dn=keyword&ops='.$sess['hash'] => $lang['keyword_checker'],
        'seo.php?dn=backlink&ops='.$sess['hash'] => $lang['back_link_checker']
        );
    }
    $block['link'] = @array_merge($block['link'],array('seo.php?dn=sitemap&ops='.$sess['hash'] => 'Google Site-Map'));
    if ($conf['social_bookmark'] == 'yes') {
        $block['links'] = array(
        'seo.php?dn=social&ops='.$sess['hash'] => $lang['social_bookmark']
        );
        $block['link'] = @array_merge($block['link'],$block['links']);
    }
    if ($conf['anchor'] == 'yes') {
        $block['links'] = array(
        'seo.anchor.php?dn=index&ops='.$sess['hash'] => $lang['seo_link'],
        'seo.anchor.php?dn=add&ops='.$sess['hash'] => $lang['add_anchor']
        );
        $block['link'] = @array_merge($block['link'],$block['links']);
    }
}
?>